Conversation
Add autocomplete support for starship, the cross-shell prompt for astronauts. Included features: - All 13 subcommands: bug-report, completions, config, explain, init, module, preset, print-config, prompt, session, timings, toggle, help - Dynamic module generator for module and toggle commands - Shell suggestions for init and completions commands - Preset name suggestions - Common prompt context options (status, path, keymap, jobs, etc.) Closes withfig#1536
|
I have read the CLA Document and I hereby sign the CLA Javis seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Overviewsrc/starship.ts:Info: |
|
Hello @nil957,
Please add a 👍 as a reaction to this comment to show that you read this. |
Summary
Add autocomplete support for starship, the cross-shell prompt for astronauts.
Closes #1536
Features
Subcommands
All 13 subcommands are supported:
bug-report- Create a GitHub issue with configuration infocompletions- Generate shell completionsconfig- Edit starship configurationexplain- Explain currently showing modulesinit- Print shell init functionmodule- Print a specific prompt modulepreset- Print preset configsprint-config- Print computed configurationprompt- Print the full promptsession- Generate random session keytimings- Print module timingstoggle- Toggle a starship modulehelp- Print helpGenerators
starship module -lto list all available modules for themoduleandtogglecommandsSuggestions
initandcompletionscommands (bash, elvish, fish, nushell, powershell, zsh)presetcommandOptions
--status,--path,--keymap,--jobs, etc.)Testing
Tested with starship v1.24.2:
npm run build- Spec compiles successfullynpm run lint- No linting errorsstarship --helpoutput